<?php

namespace Weapp\Shop;

use Weapp\Basic\Basic;

/**
 * 推广员接口
 * Class Promoter
 * @url https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/promoter/list.html
 * @package Weapp/Shop
 */
class Promoter extends Basic
{
    /**
     * 获取推广员列表
     * @param array $data
     * @return array
     * @throws \Weapp\Exceptions\InvalidResponseException
     * @throws \Weapp\Exceptions\LocalCacheException
     */
    public function list($data)
    {
        $url = 'shop/promoter/list';
        $this->registerApi($url, __FUNCTION__, func_get_args());
        return $this->callPostApi($url, $data, true);
    }
}
